<include file="Index/header" />
<body>

<div id="wrapper">

    <include file="Index/nav"/>
    <!--/. NAV TOP  -->
    <nav class="navbar-default navbar-side" role="navigation">
        <div class="sidebar-collapse">
            <ul class="nav" id="main-menu">
                <li>
                    <a href="{:U('Config/index')}" class="waves-effect waves-dark"><i class="fa fa-sitemap"></i>系统设置</a>
                </li>
                <li>
                    <a href="{:U('Manager/index')}" class="active-menu waves-effect waves-dark"><i class="fa fa-sitemap"></i>管理员管理</a>
                </li>
                <li>
                    <a href="{:U('Teacher/index')}" class="waves-effect waves-dark"><i class="fa fa-sitemap"></i>教师管理</a>
                </li>
                <li>
                    <a href="{:U('Student/index')}" class="waves-effect waves-dark"><i class="fa fa-sitemap"></i>学生管理</a>
                </li>
                <li>
                    <a href="{:U('Class/index')}" class="waves-effect waves-dark"><i class="fa fa-sitemap"></i>班级管理</a>
                </li>
                <li>
                    <a href="{:U('Course/index')}" class="waves-effect waves-dark"><i class="fa fa-sitemap"></i>课程管理</a>
                </li>
                <!--<li>-->
                    <!--<a href="{:U('Share/index')}" class="waves-effect waves-dark"><i class="fa fa-sitemap"></i>共享资料管理</a>-->
                <!--</li>-->
            </ul>

        </div>

    </nav>
    <!-- /. NAV SIDE  -->
    <div id="page-wrapper">

        <div class="container-fluid">

            <!-- Page Heading -->
            <if condition="$user eq 1">
                <div class="row">
                    <div class="col-lg-12">

                        <ol class="breadcrumb">
                            <li>
                                <i class="fa fa-dashboard"></i>  <a href="{:U('Manager/index')}">管理员管理</a>
                            </li>
                            <li class="active">
                                <i class="fa fa-edit"></i> 编辑
                            </li>
                        </ol>
                    </div>
                </div>
                <!-- /.row -->

                <div class="row">
                    <div class="col-lg-6">

                        <form class="form-horizontal" id="singcms-form">
                            <div class="form-group">
                                <label  class="col-sm-2 control-label">用户名:</label>
                                <div class="col-sm-5">
                                    <input type="text" disabled class="form-control" name="realname" placeholder="" value="{$vo.username}">
                                </div>
                            </div>

                            <div class="form-group">
                                <label  class="col-sm-2 control-label">真实姓名:</label>
                                <div class="col-sm-5">
                                    <input type="text" class="form-control" name="realname" placeholder="" value="{$vo.realname}">
                                </div>
                            </div>

                            <div class="form-group">
                                <label  class="col-sm-2 control-label">个人邮箱:</label>
                                <div class="col-sm-5">
                                    <input type="text" class="form-control" name="email" placeholder="" value="{$vo.email}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label  class="col-sm-2 control-label">密码:</label>
                                <div class="col-sm-5">
                                    <input type="text" class="form-control" name="password" placeholder="留空则不修改" value="">
                                </div>
                            </div>
                            <div class="form-group">
                                <label  class="col-sm-2 control-label">状态:</label>
                                <div class="col-sm-5">
                                    <select name="status" class="form-control select">
                                        <if condition="$vo.status eq 1">
                                            <option selected="selected" value="1">正常</option>
                                            <option value="0">禁用</option>
                                        </if>
                                        <if condition="$vo.status eq 0">
                                            <option value="1">正常</option>
                                            <option selected="selected" value="0">禁用</option>
                                        </if>
                                    </select>
                                </div>
                            </div>
                            <input type="hidden" name="admin_id" value="{$vo.admin_id}"/>

                            <div class="form-group">
                                <div class="col-sm-offset-2 col-sm-10">
                                    <button type="button" class="btn btn-default" id="singcms-button-submit">提交</button>
                                </div>
                            </div>
                        </form>


                    </div>

                </div>
                <!-- /.row -->
                <else/>
                <div class="row">
                    <div class="col-lg-12">
                        <h1 class="page-header">
                            对不起，您没有权限！
                        </h1>
                    </div>
                </div>
            </if>

        </div>
        <!-- /.container-fluid -->

    </div>
    <!-- /#page-wrapper -->

</div>
<script>
    var SCOPE = {
        'save_url' : '/Admin/Manager/save',
        'jump_url' : '/Admin/Manager',

    };

</script>
<!-- /#wrapper -->
<include file="Index/footer" />